<?php if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}
/**
 * Class account extends MY_Controller
 * @author zhangchangshun
 * 关于我们 联系我们
 */
class common extends API_Controller
{

    public function __construct()
    {
        parent::__construct();
        ini_set('date.timezone', 'Asia/Shanghai'); // 'Asia/Shanghai'
        $this->load->model('page_model', 'mpage');
    }

    /**
     * 关于我们 联系我们
     */
    public function page_detail()
    {
        $ctype = $this->input->post('ctype');
        $info = array();
        if($ctype==1){
            $info = $this->mpage->get_one(array('id'=>4));
        }elseif($ctype==2){
            $info = $this->mpage->get_one(array('id'=>5));
        }
        $this->vdata['returnCode']   = '200';
        $this->vdata['returnInfo'] = '请求成功';
        $this->vdata['secure']     = JSON_SECURE;
        $this->vdata['content']= $info;
        $this->_send_json($this->vdata);
    }

}